package serviceset1

class Customer {

    String name
    Integer gender
    Date birthday

    static constraints = {
        name(blank: false, matches: /[a-zA-Z]+/)
        gender(nullable: false, range: 0..1)
        birthday(nullable: false, validator: { it < new Date() })
    }
}
